import xlrd

# curPath = os.path.abspath(os.path.dirname(__file__))
# rootPath = os.path.split(curPath)[0]
# sys.path.append(curPath)
from hruntools.parser.parservisitor.vexcel import ExcelVisitor


def loadxls():
    file = "E:/zsah-git/hrunEX/workdir/excel/shouba4.0.xls"
    file = "E:/zsah-git/hrunEX/workdir/excel/shouba_tsuite.xls"
    # file = "E:/zsah-git/hrunEX/workdir/excel/tsuite.xls"
    wb = xlrd.open_workbook(file)
    ev = ExcelVisitor()
    ev.init(wb)
    # ev.displayExcel('shouba4_android.har')
    ev.displayExcel('TestSuite')
    # ev.displayExcel('12011716.har')

if __name__ == "__main__":
    loadxls()
